package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 护理交班
 * </p>
 *
 * @author zqb
 * @date 2024-07-26 17:27:29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_care_handover")
public class BCareHandover extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 交班内容
     */
    @TableField(value = "handover_content", condition = LIKE)
    @Schema(description = "交班内容")
    private String handoverContent;
    /**
     * 班次名称
     */
    @TableField(value = "shift_name", condition = LIKE)
    @Schema(description = "班次名称")
    private String shiftName;
    /**
     * 交班人id
     */
    @TableField(value = "hover_userid", condition = EQUAL)
    @Schema(description = "交班人id")
    private Integer hoverUserid;
    /**
     * 交班人姓名
     */
    @TableField(value = "hover_name", condition = LIKE)
    @Schema(description = "交班人姓名")
    private String hoverName;
    /**
     * 交班时间
     */
    @TableField(value = "hover_time", condition = EQUAL)
    @Schema(description = "交班时间")
    private LocalDateTime hoverTime;
    /**
     * 数据创建时间
     */

    /**
     * 是否删除0 未删除1已删除
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除0 未删除1已删除")
    private Integer isDeleted;
    /**
     * 病人健康号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人健康号")
    private String patientIdent;
    /**
     * 交班状态 0未交班 1已交班
     */
    @TableField(value = "state", condition = EQUAL)
    @Schema(description = "交班状态 0未交班 1已交班")
    private Integer state;
    /**
     * 住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "住院号")
    private String hospitalNumber;
    /**
     * 班次id
     */
    @TableField(value = "shift_id", condition = EQUAL)
    @Schema(description = "班次id")
    private Long shiftId;




}
